package com.rephilo.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 验证码服务
 *
 * @author rephilo
 */
@FeignClient(name = "lagou-service-code")
@RequestMapping("/api/code")
public interface CodeRemoteService {
    /**
     * 校验验证码
     *
     * @param email
     * @param code
     * @return
     */
    @GetMapping("/validate/{email}/{code}")
    Integer validate(@PathVariable String email, @PathVariable String code);
}
